package com.sporadic.client.service.impl;

import com.sporadic.client.mapper.OrderMapper;
import com.sporadic.client.pojo.Order;
import com.sporadic.client.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public List<Order> selOrderAll(Integer orderMerchantId,Integer orderUserId) {
        return this.orderMapper.selOrderAll(orderMerchantId,orderUserId);
    }

    @Override
    public List<Order> selOrderIdAll(String orderId) {
        return this.orderMapper.selOrderIdAll(orderId);
    }

    @Override
    public List<Order> selDataMonthAll() {
        return this.orderMapper.selDataMonthAll();
    }

    @Override
    public List<Order> selDataWeekAll() {
        return this.orderMapper.selDataWeekAll();
    }

    @Override
    public List<Order> selDataDayAll() {
        return this.orderMapper.selDataDayAll();
    }

    @Override
    public int insOrder(Order order) {
        return this.orderMapper.insOrder(order);
    }

    @Override
    public int updOrder(Order order) {
        return this.orderMapper.updOrder(order);
    }
}
